-
Notifications
You must be signed in to change notification settings - Fork 112
Homework second lesson #76
Homework second lesson #76
Conversation
Добавление плагина для модуля user
Используется mixer Обновлена логика фикстур Добавлен seed для рандома в pytest
return FavouritePictureData( | ||
user=create_user, | ||
foreign_id=1, | ||
url='https://www.youtube.com/watch?v=dQw4w9WgXcQ' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Угадал мелодию, не нажимая ссылки :-)
'cycle_number', | ||
[1, 3, 9] | ||
) | ||
def test_by_user( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Нравится, что тест с параметризацией проверяет несколько случаев с количеством «любимых» картинок 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestion: название теста можно уточнить, чтобы контекст понятнее стал
|
||
|
||
@pytest.mark.django_db | ||
def test_dashboard_view( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Эти действия делает анонимный пользователь? Тогда вроде @pytest.mark.django_db
лишний
No description provided.